import services from "@/util/request";

/**
 * 获取歌单详情页
 * @param {歌单的id} data 
 * @returns Promise对象
 */
export const getMusicDetailList=(data)=>{
    return services({
        url:`/playlist/detail?id=${data}`,
        method:'get'
    })
}

/**
 * 获取歌曲的信息
 * @param {歌曲id值} data 
 * @returns Promise对象
 */
export const getMusiclList=(data)=>{
    return services({
        url:`/playlist/track/all?id=${data}&offset=0`,
        method:'get'
    })
}

/**
 * 获取歌词信息
 * @param {*} data 
 * @returns Promise对象
 */
export const getMusicLyric=(data)=>{
    return services({
        url:`/lyric?id=${data}`,
        method:'get'
    })
}